package com.ilop.sthome.mvp.contract.scene;

import com.example.common.mvp.IBasePresenter;
import com.example.common.mvp.IBaseView;
import com.ilop.sthome.data.greenDao.SceneBean;

import java.util.List;

/**
 * @author skygge
 * @date 2020-01-14.
 * GitHub：javofxu@github.com
 * email：skygge@yeah.net
 * description：
 */
public interface SceneChangeContract{

    interface IView extends IBaseView{

        void showSceneList(List<SceneBean> scene);

        void showToastMsg(String msg);

        void showProgress();

        void setDeleteSceneId(int sceneId);
    }

    interface present extends IBasePresenter<IView>{

        void getGatewayList();

        void getSceneList();

        void changeScene(SceneBean scene);

        void saveCurrentState();

        void synchronizationScene(String deviceName);

        void synchronizationAuto(String deviceName);

        void showDialogToDelete(SceneBean scene);

        void deleteSceneSuccess(int sceneId);
    }
}
